package net.zjitc.mapper;

import net.zjitc.pojo.Grade;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GradeTwoMapper {
    @Select("select * from grade")
   List<Grade> findAll();
    /**
     * 通过id查班级
     * */
    @Select("select * from grade where id = #{id}")
    Grade findById(int id);

    /*student: 通过gid和age查询学生*/

}
